Unity learning material: VR Development Pathwayやる
from VRMで読み込んだキャラクターをpassthroughで出すアプリを作る
Unity learning material: VR Development Pathway
Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn
https://developer.oculus.com/documentation/native/android/mobile-device-setup/
VR software setup
Questを開発モードにする
VRプロジェクトをゼロから作成する
https://learn.unity.com/tutorial/create-a-vr-starter-project-from-scratch#
このコースではいろんなプラグインが事前に準備されて整っている
1.1 VR Project Setup
hierarchyにD&Dすると原点に配置できる
https://gyazo.com/5648e1ab3bc716535654a0695fa6f7b5
プロジェクトファイルにPrefabがいくつかあって好きな部屋を配置してPoint lightをいじっていい感じの見た目にしていく
https://gyazo.com/7fa50f09d9abe9769ea207c7b36ebc72
VR HMDがない場合のテスト
Device Simulatorをシーンに入れるとできる
操作を覚えるのが面倒で使う予定がないので読み飛ばした
PCと接続したQuest上でアプリを動かす(Tethered testing)
Unityのplayボタンを押したらHMDで確認するための設定
Windows
XR Plugin ManagementでPC向けの設定を有効にするだけ
Oculus Linkで接続
Playボタンを押す
build and runは不要だったのか基素.icon
https://gyazo.com/9819fa867f0aec2ce6f1df3eea7ab615
Runtime Debuggerを有効にしているけどしなくても動いた。これなはなに?
https://docs.unity.cn/Packages/com.unity.xr.openxr@1.4/manual/project-configuration.html#enable-openxr-features
Unity OpenXRプラグインがOpenXRの機能として提供している機能
Mac
Quest単体でアプリを動かす(standalone testing)
Android向けのAPKをビルドして動かす
XR Plugin ManagementでのOpen XR pluginAndroid向けの設定が必要
https://gyazo.com/b7cdee5ce522923618cb48c7b9b6530ahttps://gyazo.com/347ca3951dafa217003e8145d6a41108
Build settingsでAndroid向けのビルド設定をする
Buildに含まれるシーンも選択
https://gyazo.com/3ffceae0a6786bcd220d4ddab06b3ac4
実行ファイルむけのbuildディレクトリを作る
他のOpenXR互換デバイスでもXR Plugin ManagementにProfileを追加すればいけそう
https://learn.unity.com/tutorial/vr-project-setup?pathwayId=627c12d8edbc2a75333b9185&missionId=62554983edbc2a76a27486cb#627133f8edbc2a13728cc69b
実機確認できないので本当に動くのか不安基素.icon
時計を動かす課題
今のスキルではできない基素.icon
Scriptで時計の針を動かしたい
どうスクリプトから時計の針を動かせばいいのか?
参照の仕方
どうアンカーポイントを指定するのか?
時計の中心から回転してほしい
システムの時刻を時計の動きに変換する仕組みが必要
もっとUnity初心者向けのところをやったらかいてあるかな?✅Unity Essentials: Get started with Unityをやろうかな
1.2 - VR Locomotion - Unity Learn
部屋の改修
3D rigのチューニング
テレポート
1.3
https://learn.unity.com/quiz/pre-assessment-for-vr-development#629f8cb4edbc2a6b1b1cbeef
5/8
https://learn.unity.com/tutorial/statics-l
virtual method
The virtual keyword is used for a method if you want it to be able to be overridden by a child class.
It cannot be private, otherwise it would not be able to be overridden.
Unlike abstract methods, virtual methods do not have to be overridden in child classes; it is just an option if you want.
Virtual methods cannot be accessed by parent classes.
For more information on virtual methods and overrides, check out
https://learn.unity.com/tutorial/overriding#
C#は多重継承を認めない
https://ufcpp.net/study/csharp/oop/oo_multipleinheritance/
Grid snapを有効にするためにhandle rotationをGlobalにする
https://gyazo.com/c7ec0530e66ef9772fa068fba0a0a523
https://docs.unity3d.com/ja/2019.4/Manual/GridSnapping.html#grid-snap